package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum LevelType {
    USER_LEVEL(1,"用户等级"), BIZ_LEVEL(2,"商家等级");

    private int code;
    private String name;
    LevelType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<LevelType> getAllData(){
        List<LevelType> result = new ArrayList<LevelType>();
        for (LevelType current : LevelType.values())
        {
            result.add(current);
        }
        return result;
    }

//    public static void main(String[] args) {
//        for(ChannelType c : getAllChannel()){
//            System.out.print(c.getName());
//        }
//    }
}
